package com.itheima.edu.info.manager.dao;

import com.itheima.edu.info.manager.domain.Fruit;

public abstract class FruitDao implements BaseFruitDao{
    private static Fruit[] fruits = new Fruit[5];

    static {
        Fruit f1 = new Fruit("001","苹果",23,15);
        Fruit f2 = new Fruit("002","梨子",24,20);

        fruits[0]=f1;
        fruits[1]=f2;
    }

    @Override
    public Fruit[] findAllFruit() {
        return fruits;
    }
}
